package com.my.aslife.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my.aslife.module.common.PageRequestVo;
import com.my.aslife.module.common.ResponseResult;
import com.my.aslife.module.entity.Consult;
import com.my.aslife.module.entity.dtos.ConsultCommitDto;

/**
 * @author mayuan
 * @description TODO
 */
public interface ConsultService extends IService<Consult> {
    /**
     * 提交协商
     * @param consultCommitDto consultCommitDto
     * @return
     */
    ResponseResult commitConsult(ConsultCommitDto consultCommitDto);

    /**
     * 查询 协商数据 by orderId
     * @param orderId orderId
     * @return Consult
     */
    Consult queryConsultByOrderId(Long orderId);

    /**
     * @param pageRequestVo pageRequestVo
     * @return
     */
    ResponseResult selectOrderInfoByPageOrCondition(PageRequestVo pageRequestVo);

    ResponseResult sendEmail(Integer id);
}
